import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import pinia from './pinia'
// 1. 引入你需要的组件
import Vant from 'vant'
// 2. 引入组件样式
import 'vant/lib/index.css'
import router from './router/index'

// 3.引入注册公共组件
import searchHeader from './components/searchHeader/index.vue'
import topNav from './components/topNav/indev.vue'

const app = createApp(App)

app.component(searchHeader.name, searchHeader)

app
  .component(topNav.name, topNav)
  .use(pinia)
  .use(Vant)
  .use(router)
  .mount('#app')
